<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel="stylesheet" href="${initParam.root}/css/board.css" type="text/css">
<script type="text/javascript">
	$(document).ready(function(){
		$("#delImg").click(function(){
			if(confirm("정말 삭제하시겠습니까?")){
				location.href="${initParam.root}qna/qnaDelete.moja?qnaNo=${requestScope.qvo.qnaNo }";
			}
		});
	});
</script>
<div id="mainCss">
	<table class="content">
					<tr>
						<td><b>${requestScope.qvo.qnaNo }-${requestScope.qvo.qnaTitle}</b>
						</td>
					</tr>
					<tr>
						<td><font size="2">글쓴이: ${requestScope.qvo.qnaWriter }
							|	조회수:  ${requestScope.qvo.viewCount }  
							|	${requestScope.qvo.qnaDate}</font></td>
					</tr>
					<tr>
						<td><textarea cols="40" rows="10" name="qnaContent"
								readonly="readonly">${requestScope.qvo.qnaContent }</textarea></td>
					</tr>
					<tr>
						<td valign="middle"><a
							href="qnaReplyView.moja?qnaNo=${requestScope.qvo.qnaNo}">
							<img src="${initParam.root}/img/answer_btn.jpg"></a> <a
							href="${initParam.root }qna/getQnaList.moja"><img
								src="${initParam.root}/img/list_btn.jpg"></a>
								<a href="${initParam.root }qna/qnaUpdateView.moja?qnaNo=${requestScope.qvo.qnaNo }"><img id="updateImg" src="${initParam.root}/img/modify_btn.jpg"></a>
								
								
								<img id="delImg" src="${initParam.root}/img/delete_btn.jpg">
							</td>
					</tr>
					<tr>
						<td><span id="inputPass"></span></td>
					</tr>
				</table>
</div>
